import request from '@/utils/request'

// 泰安市的所有水厂
export const cityGetFactoryAPI = (data) => request.post('/foulFactory/city/list', data)

// 泰山区水厂
export const countryGetFactoryAPI = (params) => {
    return request.get('/foulFactory/country/list', {
        params
    })
}

// 获取水厂详情
export const factoryGetDetailService = (id) =>
    request.get('/foulFactory/' + id)

// 达标率
export const getPassingAPI = (params) => {
    return request.get('/foulFactory/passing', {
        params
    })
}

export const getAmountAPI = (params) => {
    return request.get('/foulFactory/amount', {
        params
    })
}

export const getDosageAPI = (params) => {
    return request.get('/foulFactory/dosage', {
        params
    })
}

export const getContentAPI = (params) => {
    return request.get('/foulFactory/content', {
        params
    })
}